<template>
  <div id="features" class="person-detail">
    <div>
      <van-nav-bar
        :fixed="true"
        title="功能介绍"
        left-arrow
        @click-left="back()"
      />
    </div>
    <div>
      <van-cell-group>
        <van-cell
          v-for="(item, index) in data"
          :key="index"
          :title="item.version"
          is-link
          @click.native="
            $router.push({
              path: '/person/updateComponent',
              query: { id: item.id }
            })
          "
        />
      </van-cell-group>
    </div>
  </div>
</template>
<script>
import mine from "../../../controller/mine";

export default {
  name: "features",
  components: {},
  data() {
    return {
      data: []
    };
  },
  computed: {},
  created() {},
  mounted() {
    this.getInfo();
  },
  methods: {
    getInfo() {
      let data = {
        curPage: 0,
        pageSize: 10,
        startIndex: 0,
        totalCount: 10
      };
      mine.appVersion_v1_list(data).then(res => {
        if (res.code === "0") {
          this.data = res.datas.records;
        } else {
          this.$toast(res.msg);
        }
      });
    },
    back() {
      this.$router.go(-1);
    }
  }
};
</script>
<style lang="scss" scoped>
@import "../style/index.scss";
</style>
